package java6681.lesson11;

public class Student6681 extends Person6681 {
    private String school;

    public Student6681() {
    }

    public Student6681(String name, char sex, String school) {
        super(name, sex);
        this.school = school;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public void go() {
        go(school);
    }

    public void register() {
        System.out.println(getName() + "(" + getSex() + ")新学期已注册！");
    }

}
